package com.sc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

@Data
@TableName(value = "property_repair")
public class Repair {
    @TableId(type = IdType.AUTO)
    private Integer id; //主键

    @TableField("home")
    private String home; //房间

    @TableField("project")
    private String project; //维修项目

    @TableField("title")
    private String title; //标题

    @TableField("description")
    private String description; //问题描述

    @TableField("phone")
    private String phone; //手机号

    @TableField("person")
    private String person; //用户

    @TableField("appoint_date")
    @JsonFormat(shape = JsonFormat.Shape.STRING ,pattern = "yyyy/MM/dd")
    private String appointDate; //预约时间

    @TableField("add_image")
    private String addImage; //问题附件

    @TableField("status")
    private int status; //维修状态 1.提交维修信息 2.审核中 3.维修指派 4.维修完成 5.审核不通过

    @TableField("review_opinion")
    private String reviewOpinion; //审核意见
}
